package com.yc.ycpaimon.net

import com.yc.jetpacklib.init.YcJetpack
import com.yc.ycpaimon.data.constant.Constants
import com.yc.ycpaimon.data.json.VersionJson
import retrofit2.http.GET
import retrofit2.http.Headers

/**
 * Creator: yc
 * Date: 2022/2/17 18:13
 * UseDes:
 */
interface GithubApi {
    @Headers(YcJetpack.OTHER_BASE_URL + ":" + Constants.GITHUB_URL)
    @GET("repos/QooLianyi/PaimonsNotebook/releases/latest")
    suspend fun versionUpdate(): VersionJson
}